package com.gaofei.service.impl;

import com.gaofei.domain.ActivitiVo;
import com.gaofei.mapper.LeaveMapper;
import com.gaofei.service.LeaveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LeaveServiceImpl implements LeaveService {

    @Autowired
    LeaveMapper leaveMapper;

    @Override
    public Boolean save(ActivitiVo activitiVo) {
        int i =  leaveMapper.save(activitiVo);
        return i>0?true:false;
    }

    @Override
    public ActivitiVo findLeaveById(int id) {
        return leaveMapper.findLeaveById(id);
    }
}
